package com.jz.util.office.exception;

import java.io.Serializable;

public class OfficeException extends RuntimeException implements Serializable {
    private static final long serialVersionUID = -7611643172712984322L;
    int code = -1;

    public OfficeException() {
    }

    public OfficeException(int code) {
        this.code = code;
    }

    public OfficeException(String message) {
        super(message);
    }

    public OfficeException(int code, String message) {
        super(message);
        this.code = code;
    }

    public OfficeException(Throwable cause) {
        super(cause);
    }

    public OfficeException(String message, Throwable cause) {
        super(message, cause);
    }

    public OfficeException(int code, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
    }

    public int getCode() {
        return this.code;
    }

    public void setCode(int code) {
        this.code = code;
    }
}
